﻿using UnityEngine;
using System.Collections;

public class UIItemChraracterSmallAdd : MonoBehaviour {

    public GameObject UICharacterAdd;

    public delegate void SimpleDelegate();

	void Start () {
	
	}
	
	void Update () {
	
	}

    // Funzione usata solo nell'inspector
    public void ItemClick()
    {
        Show(null, null);
    }

    public void Show(SimpleDelegate callbackADD, SimpleDelegate callbackCANCEL)
    {
        GameObject obj = Instantiate(UICharacterAdd);
        obj.transform.position = new Vector3(0, 0, 0);
        obj.transform.localPosition = new Vector3(1, 1, 1);
        obj.SetActive(true);
    }
}
